package org.shinetour.sms.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.shinetour.sms.model.*;

import java.util.List;
import java.util.Map;

public interface ISmsManageService {

    /**
     * @Description: 查询短信发送记录
     * @Author: ZhenHua Wang
     * @CreateDate: 2020/3/23 11:39
     */
    Page<SmsRecord> listSmsRecord(Map<String, String> map);

    /**
     * @Description: 根据iid查询模板
     * @Author: ZhenHua Wang
     * @CreateDate: 2020/4/16 9:41
     */
    SmsTemplate selectSmsTemplateById(Long iid);

    /**
     * @Description: 查询模板列表
     * @Author: ZhenHua Wang
     * @CreateDate: 2020/3/23 11:40
     */
    Page<SmsTemplate> listSmsTemplate(Map<String, String> request);

    /**
     * @Description: 根据模板编号查询模板参数
     * @Author: ZhenHua Wang
     * @CreateDate: 2020/4/9 17:42
     */
    List<TemplateParams> listSmsTemplateParams(String templateCode);

    /**
     * @Description: 新增或修改短信模板
     * @Author: ZhenHua Wang
     * @CreateDate: 2020/4/15 11:35
     */
    ResultModel addOrEditTemplate(TemplateDTO template);
}
